package com.anycl.design.behavioral.mediator.instance;

/**
 * 抽象中介公司
 */
public abstract class MediatorCompany {
    // 中介公司
    private String name;
    // 卖家
    protected ColleagueSeller seller;
    // 买家
    protected ColleagueBuyer buyer;

    public MediatorCompany(String name) {
        this.name = name;
    }

    // 需求内容、发布人
    public abstract void publish(String message, Colleague colleague);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ColleagueSeller getSeller() {
        return seller;
    }

    public void setSeller(ColleagueSeller seller) {
        this.seller = seller;
    }

    public ColleagueBuyer getBuyer() {
        return buyer;
    }

    public void setBuyer(ColleagueBuyer buyer) {
        this.buyer = buyer;
    }
}
